<?php
!defined('QAPP') AND exit('Forbidden');

//include "funcs/allinone.phpmerge";
include "funcs/log.php";//日志函数
include "funcs/iptables.php";//ip防火墙
include "funcs/phphook.php";//钩子类
include "funcs/markdown.php";//markdown转html类
include "funcs/randomstr.php";//随机字符串函数
include "funcs/check.php";//数据检测类函数
include "funcs/str.php";//字符串增强函数
include "funcs/array.php";//数组增强
include "funcs/encode.php";//安全加密类函数
include "funcs/humanizer.php";//显示类函数
include "funcs/file.php";//文件操作类函数
include "funcs/html.php";//页面生成类函数
include "funcs/http.php";//网络访问类函数
include "funcs/img.php";//图像处理类函数
include "funcs/request.php";//对用户请求的处理函数
include "funcs/response.php";//对返回给用户的数据处理的函数
include "funcs/time.php";//时间操作函数
include "funcs/cache.php";//memcache和redis缓存操作函数
include "funcs/QAppDB.php";//QAPP内置数据库类
include "funcs/database.php";//与数据库有关的函数
include "funcs/wpfilter.php";//标签过滤
include "funcs/router.php";//路由
include "funcs/i18nclass.php";//多语言类
include "funcs/i18n.php";//多语言支持库
include "funcs/uuu.php";//文章函数
include "funcs/qqq.php";//QApp新增的文章函数
include "funcs/tags.php";//标签支持库
include "funcs/qapp.php";//QAPP后台操作函数

if (MLang) {
    $i18n = i18nclass::instance();
    $i18n->setPath(AppDir . '/languages');
    $i18n->useLangFromGET(true);

    $lang = getGet("lang", "");
    if ($lang) {
        $i18n->setDefaultLang(cookie_get("lang"));
        cookie_set("lang", $lang);
    }
}